package com.angel.architecture.persistence.beans;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.angel.architecture.persistence.base.PersistentObject;

/**
 * @author William
 */
@Entity
public class ParameterArea extends PersistentObject{

	private static final long serialVersionUID = 3336831558035250104L;

	@Column(length = 30, nullable = false, unique = true)
    private String name;

    @Column(length = 100, nullable = false)
    private String description;

    public ParameterArea() {
        super();
    }

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	public boolean isName(String areaName) {
		return this.getName().equalsIgnoreCase(areaName);
	}
}
